using System.Data.Entity;

namespace Beaker.OpenCube.CubeManager.Model.Configurations
{
	internal sealed class CubeManagerDbContext
		: DbContext
	{
		public CubeManagerDbContext()
			: base( "CubeManager" )
		{
		}

		protected override void OnModelCreating( DbModelBuilder modelBuilder )
		{
			modelBuilder.Configurations.Add( new MachineConfiguration() );
			modelBuilder.Configurations.Add( new ServerConfiguration() );
			modelBuilder.Configurations.Add( new ActivityConfiguration() );
			modelBuilder.Configurations.Add( new RoleConfiguration() );
			modelBuilder.Configurations.Add( new RoleSetConfiguration() );
			modelBuilder.Configurations.Add( new UserConfiguration() );

			base.OnModelCreating( modelBuilder );
		}
	}
}